package com.hkg.springcloud.service;

import com.hkg.springcloud.ResultUtil.CommonResult;
import com.hkg.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {

    @PostMapping("/payment/query/{id}")
    CommonResult<Payment> queryPaymentById(@PathVariable("id") Long id);
}

